package com.home.entity;

import lombok.*;

import java.util.Date;
import javax.persistence.*;
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor
@Getter
@Setter
@Table(name = "msg_send_info")
public class MsgSendInfo {
    private Long id;

    /**
     * 队列名称
     */
    @Column(name = "msg_name")
    private String msgName;

    /**
     * 消息topic
     */
    @Column(name = "msg_topic")
    private String msgTopic;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 处理时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     *  0未处理 1正常  -1异常
     */
    private Integer status;

    /**
     * 重发次数
     */
    @Column(name = "send_times")
    private Integer sendTimes;

    /**
     * 消息内容
     */
    @Column(name = "msg_body")
    private String msgBody;

    /**
     * 发送错误
     */
    @Column(name = "send_error")
    private String sendError;


}